import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      component: () => import('../views/LoginView.vue'),
    },
    {
      path: '/memberlevel',
      component: () => import('../views/MemberLevelView.vue'),
    },
    {
      path: '/rightlist',
      component: () => import('../views/RightList.vue'),
    },
    {
      path: '/addright',
      component: () => import('../views/AddRight.vue'),
    },
    {
      path: '/memberleveladd',
      component: () => import('../views/MemberLevelAddView.vue'),
    },
    {
      path: '/memberadd',
      component: () => import('../views/MemberAdd.vue'),
    },
    {
      path: '/memberlist',
      component: () => import('../views/MemberList.vue'),
    },
    {
      path: '/memberupdate',
      component: () => import('../views/MemberUpdate.vue'),
    },
    {
      path: '/shoplist',
      component: () => import('../views/Shop/ShopList.vue'),
    },
    {
      path: '/addshop',
      component: () => import('../views/Shop/AddShop.vue'),
    },
    {
      path: '/updateshop',
      component: () => import('../views/Shop/UpdateShop.vue'),
    },
    {
      path: '/detail',
      component: () => import('../views/Shop/ShopDetail.vue'),
    },
    {
      path: '/shopcountlist',
      component: () => import('../views/Shop/ShopCountList.vue'),
    },
    {
      path: '/adddiscount',
      component: () => import('../views/Discount/AddDiscount.vue'),
    },
    {
      path: '/discountlist',
      component: () => import('../views/Discount/DiscountList.vue'),
    },
    {
      path: '/update',
      component: () => import('../views/Discount/UpdateDiscount.vue'),
    },
    {
      path: '/countcount',
      component: () => import('../views/Discount/DiscountCountList.vue'),
    },
    {
      path: '/houseadd',
      component: () => import('../views/House/AddHouse.vue'),
    },
    {
      path: '/houseshow',
      component: () => import('../views/House/HouseList.vue'),
    },
    {
      path: '/houseupdate',
      component: () => import('../views/House/UpdateHouse.vue'),
    },
    {
      path: '/housetypeupdate',
      component: () => import('../views/House/HouseTypeUpdate.vue'),
    },
    {
      path: '/housenumbershow',
      component: () => import('../views/House/HouseNumberList.vue'),
    },
    {
      path: '/housenumberadd',
      component: () => import('../views/House/HouseNumberAdd.vue'),
    },
    {
      path: '/housepricelist',
      component: () => import('../views/House/HousePriceList.vue'),
    },
    {
      path: '/houserowlist',
      component: () => import('../views/House/HouseRowList.vue'),
    },
    {
      path: '/addhouseprice',
      component: () => import('../views/House/AddHousePrice.vue'),
    },
    {
      path: '/addhouserow',
      component: () => import('../views/House/AddHouseRow.vue'),
    },
    {
      path: '/housepriceupdate',
      component: () => import('../views/House/UpdateHousePrice.vue'),
    },
    // {
    //   path: '/about',
    //   name: 'about',
    //   // route level code-splitting
    //   // this generates a separate chunk (About.[hash].js) for this route
    //   // which is lazy-loaded when the route is visited.
    //   component: () => import('../views/AboutView.vue'),
    // },
  ],
})

export default router
